﻿using System.Linq;
using PocketBook.Model;
using PocketBook.Properties;

namespace PocketBook.ViewModels.Designs
{
    [DesignResources(typeof(Resources))]
    [DesignEditor(typeof(StringListEditorViewModel))]
    public class ChecklistPage : CustomisableDesign<NoteList>
    {
        public ChecklistPage()
        {
            Settings.AddRange(Enumerable.Range(1, 8).Select(n => new NoteItem { Text = n < 4 ? "To-do " + n : " " }));
        }

        public bool HasGrayBox { get; set; }

        public override object Clone()
        {
            var result = (ChecklistPage) base.Clone();
            result.HasGrayBox = HasGrayBox;

            return result;
        }
    }
}